package cn.iocoder.yudao.module.aiposter.controller.admin.poster.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 海报信息新增/修改 Request VO")
@Data
public class PosterSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23094")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "大年初一欢聚手机海报")
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "行业", requiredMode = Schema.RequiredMode.REQUIRED, example = "节日")
    @NotEmpty(message = "行业不能为空")
    private String bizName;

    @Schema(description = "关键词", requiredMode = Schema.RequiredMode.REQUIRED, example = "新年、过年")
    @NotEmpty(message = "关键词不能为空")
    private String keyword;

    @Schema(description = "模版id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20696")
    @NotNull(message = "模版id不能为空")
    private Long templateId;

    @Schema(description = "封面图", requiredMode = Schema.RequiredMode.REQUIRED, example = "/static/1013.png")
    @NotEmpty(message = "封面图不能为空")
    private String cover;

    @Schema(description = "图层信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "{'title':'xxx'}")
    @NotEmpty(message = "图层信息不能为空")
    private String data;

    @Schema(description = "宽度", requiredMode = Schema.RequiredMode.REQUIRED, example = "512")
    @NotNull(message = "宽度不能为空")
    private Integer width;

    @Schema(description = "高度", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "高度不能为空")
    private Integer height;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

}